<template>
    <div>
        <child :list="list"></child>
    </div>
</template>

<script>
import child from '../components/child'
import lists from '../../public/data.json'
    export default {
        components:{
            child
        },
        data() {
            return {
                list:[]
            }
        },
        mounted() {
            this.getList()
        },
        methods: {
            getList(){
                this.list.push(lists)
            }
        },

    }
</script>

<style scoped>

</style>